class MyJob < ActiveBackground::Worker
  def process_job
    # work_on :all
    # get a connection
    
    1.times do
      database do
        @persons = Person.find(:all)
      end
    end
    
    @logger.info('MyWorker: worked')
  end
end